package com.zm.demo;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
/**
 * 服务注册中心
 */
@SpringBootApplication
@EnableEurekaServer
@Slf4j
public class ApplicationRegisterServer {
    public static void main(String[] args) {
        //如果注解@Slf4j注入后找不到变量log，需要IDEA安装lombok插件
        log.debug("debug message");
        log.warn("warn message");
        log.info("info message");
        log.error("error message");
        log.trace("trace message");
        SpringApplication.run(ApplicationRegisterServer.class, args);
    }
}
